import axios from '../../axios.js';
const ORDERS = '/orders';
const orders = {
    getOrders(params) {
        return axios({
            url: '/orders/getOrders',
            method: 'get',
            params
        });
    },
    modifyOrders(data) {
        return axios({
            url: ORDERS + '/modifyOrders',
            method: 'post',
            data
        });
    },
    deleteOrders(data) {
        return axios({
            url: '/orders/deleteOrders',
            method: 'post',
            data
        });
    },
    searchOrders(data) {
        return axios({
            url: '/orders/searchOrders',
            method: 'post',
            data
        });
    },


    //获取历史订单  ----廖冬

    getHistoryOrders(data) {
        console.log('获取历史订单-----', data);
        return axios({
            url: '/orders/getHistoryOrders',
            method: 'post',
            data
        });
    },
    //新增评价
    addEvaluate(data) {

        return axios({
            url: '/orders/addEvaluate',
            method: 'post',
            data
        });
    }


}
export default orders;